package com.wang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {
    private int tid;
    private int pid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date otime;
    private String optot;
    private String ottop;
    private int pscore;
    private int tscore;
    private int sid;
    private String delreason;
    private double price;
    private int oid;
//    1.家长提交订单2.教师确认订单3.家长确认订单4.家长或教师已评分 0订单取消
    private int state;
    private String ograde;
    private String oproject;

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public String getOptot() {
        return optot;
    }

    public void setOptot(String optot) {
        this.optot = optot;
    }

    public String getOttop() {
        return ottop;
    }

    public void setOttop(String ottop) {
        this.ottop = ottop;
    }

    public int getPscore() {
        return pscore;
    }

    public void setPscore(int pscore) {
        this.pscore = pscore;
    }

    public int getTscore() {
        return tscore;
    }

    public void setTscore(int tscore) {
        this.tscore = tscore;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getDelreason() {
        return delreason;
    }

    public void setDelreason(String delreason) {
        this.delreason = delreason;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getOgrade() {
        return ograde;
    }

    public void setOgrade(String ograde) {
        this.ograde = ograde;
    }

    public String getOproject() {
        return oproject;
    }

    public void setOproject(String oproject) {
        this.oproject = oproject;
    }

    @Override
    public String toString() {
        return "Order{" +
                "tid=" + tid +
                ", pid=" + pid +
                ", otime=" + otime +
                ", optot='" + optot + '\'' +
                ", ottop='" + ottop + '\'' +
                ", pscore=" + pscore +
                ", tscore=" + tscore +
                ", sid=" + sid +
                ", delreason='" + delreason + '\'' +
                ", price=" + price +
                ", oid=" + oid +
                ", state=" + state +
                ", ograde='" + ograde + '\'' +
                ", oproject='" + oproject + '\'' +
                '}';
    }
}
